<?php
/**
 * Created by PhpStorm.
 * User: CodeShuhao
 * Date: 2019/6/9
 * Time: 11:31
 */
/**
 * 公共常量
 */
use think\facade\App;
$_root = rtrim(dirname(rtrim($_SERVER['SCRIPT_NAME'], '/')), '/');
//根目录
define('ROOT_URL', (('/' == $_root || '\\' == $_root) ? '' : $_root));
//应用目录
define('APPLICATION_PATH', App::getAppPath());
//common模块目录
define('COMMON_PATH',APPLICATION_PATH.'common');